package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: liangyuanzhang
 * Date: 2025-1-10
 * Time: 13:08
 */
public class Test {

    public static void main(String[] args) {
        //final int a = 10; 此时final修饰的变量 是常量 证明此时这个变量的值将不能被修改
        int a = 10;
        a = 20;
        System.out.println(a);
    }

    public static void main2(String[] args) {
        Cat cat = new Cat("咪咪",10);
    }

    public static void main1(String[] args) {
        Cat cat = new Cat("咪咪",10);
        cat.name = "咪咪";
        cat.mimi();

        Dog dog = new Dog("旺财",12);
        //Dog dog = new Dog();
        dog.bark();

        tiger tiger = new tiger();
        tiger.name = "小老虎";
        tiger.bellow();
    }
}
